﻿<Window x:Class="WPP_Console.OrderWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WPP_Console"
        Title="Order Window" Height="565" Width="615" Icon="images/package-icon2.ico">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="themes\WPP_Orange.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel Background="#FF333333">
        <DockPanel DockPanel.Dock="Top" Grid.Row="0" Name="OrderInfo">
            <Border BorderThickness="2" CornerRadius="3" BorderBrush="#FFF6871B" Margin="5">
                <Grid DockPanel.Dock="Left" Background="#FF333333">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Border Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" BorderThickness="1,1,1,0" CornerRadius="1" BorderBrush="#FFF6871B" Margin="-2,-2,-2,0">
                        <Grid Background="#FFF6871B">
                            <Label HorizontalAlignment="Left" Content="CUSTOMER INFO" FontFamily="Myriad Pro" FontSize="12" FontWeight="Bold" Margin="0,0,0,0"></Label>
                        </Grid>
                    </Border>
                    <Label Grid.Column="0" Grid.Row="1" Content="SHIPPING NAME:" VerticalAlignment="Center" FontWeight="Bold" FontSize="11" FontFamily="Myriad Pro" Margin="1" Foreground="#FFF2F2F2">
                        <Label.Background>
                            <SolidColorBrush />
                        </Label.Background>
                    </Label>
                    <Label Grid.Column="1" Grid.Row="1" Name="shippingNameLbl" Width="100" HorizontalAlignment="Right" Margin="1,0,0,1" Foreground="#FFF2F2F2" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="0" Grid.Row="2" Content="BILLING NAME:" VerticalAlignment="Center" Foreground="#FFF2F2F2" FontWeight="Bold" FontSize="11" FontFamily="Myriad Pro" Margin="1">
                        <Label.Background>
                            <SolidColorBrush />
                        </Label.Background>
                    </Label>
                    <Label Grid.Column="1" Grid.Row="2" Name="billingNameLbl" Width="100" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top" Foreground="#FFF2F2F2" Margin="1,1,0,1" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="0" Grid.Row="3" Content="TELEPHONE:" Foreground="#FFF2F2F2" VerticalAlignment="Center" FontWeight="Bold" FontSize="11" FontFamily="Myriad Pro" Margin="1">
                        <Label.Background>
                            <SolidColorBrush />
                        </Label.Background>
                    </Label>
                    <Label Grid.Column="1" Grid.Row="3" Name="telephoneLbl" Width="100" HorizontalAlignment="Left" Foreground="#FFF2F2F2" Margin="1,1,0,0" Background="#FF4C4C4C"></Label>
                </Grid>
            </Border>
            <Border BorderThickness="2" CornerRadius="3" BorderBrush="#FFF6871B" Margin="0,5,5,5">
                <Grid Background="#FF333333">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Border Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="4" BorderThickness="1,1,1,0" CornerRadius="1" BorderBrush="#FFF6871B" Margin="-2,-2,-2,-2">
                        <Grid Background="#FFF6871B">
                            <Label HorizontalAlignment="Left" Content="ORDER INFO" FontSize="12" FontWeight="Bold" />
                        </Grid>
                    </Border>
                    <Label Grid.Column="0" Grid.Row="1" Content="ORDER STATUS:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="1" Grid.Row="1" Content="" Name="orderStatusLbl" Margin="0,2,0,1" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="0" Grid.Row="2" Content="PACKAGE COUNT:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="1" Grid.Row="2" Content="" Name="packageCountLbl" Margin="0,1,0,1" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="0" Grid.Row="3" Content="ORDER NUMBER:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="1" Grid.Row="3" Content="" Name="orderNumberLbl" Margin="0,1,0,0" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="2" Grid.Row="1" Content="CREATION DATE:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="3" Grid.Row="1" Content="" Name="createDateLbl" Margin="0,2,0,1" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="2" Grid.Row="2" Content="PROCESSED DATE:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="3" Grid.Row="2" Content="" Name="procDateLbl" Margin="0,1,0,1" Background="#FF4C4C4C"></Label>
                    <Label Grid.Column="2" Grid.Row="3" Content="COMPLETE DATE:" VerticalAlignment="Center" FontSize="11" FontWeight="Bold" />
                    <Label Grid.Column="3" Grid.Row="3" Content="" Name="compDateLbl" Margin="0,1,0,0" Background="#FF4C4C4C"></Label>
                </Grid>
            </Border>
        </DockPanel>
        <Border Margin="5,0,5,5" Background="#FFFFCB7A" BorderThickness="2" CornerRadius="3" BorderBrush="#FFF6871B" DockPanel.Dock="Bottom">
            <DockPanel Background="#FF333333">
                <WrapPanel DockPanel.Dock="Right" HorizontalAlignment="Center">
                    <Button Name="SaveOrder" FontFamily="Myriad Pro" Foreground="#FFF2F2F2" Content="SAVE CHANGES" Click="SaveOrder_Click" Height="33" VerticalAlignment="Center" />
                    <Button Name="Cancel" FontFamily="Myriad Pro" Foreground="#FFF2F2F2" Content="CANCEL" Click="Cancel_Click" VerticalAlignment="Center" Height="32" />
                </WrapPanel>
                <WrapPanel HorizontalAlignment="Left">
                    <Button Name="print" ToolTip="Print Label" Click="print_Click" >
                        <WrapPanel>
                            <Image Source="/WPP_Console;component/images/print-icon.png" Height="25" Width="30" Margin="-2" RenderTransformOrigin="0.5,0.5">
                                <Image.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleY="-1"/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Image.RenderTransform>
                            </Image>
                            <Label VerticalAlignment="Center" Content="PRINT SELECTED" FontSize="9" FontFamily="Myriad Pro" Foreground="#FFF2F2F2" />
                        </WrapPanel>
                    </Button>
                    <Button Name="printAll" ToolTip="Print Label" Margin="0" Click="printAll_Click" >
                        <WrapPanel>
                            <Image Source="/WPP_Console;component/images/print-icon.png" Height="25" Width="30" Margin="-2" RenderTransformOrigin="0.5,0.5">
                                <Image.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleY="-1"/>
                                        <SkewTransform/>
                                        <RotateTransform/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Image.RenderTransform>
                            </Image>
                            <Label VerticalAlignment="Center" Content="PRINT ALL" FontSize="9" FontFamily="Myriad Pro" Foreground="#FFF2F2F2" />
                        </WrapPanel>
                    </Button>
                </WrapPanel>
            </DockPanel>
        </Border>
        <DockPanel>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <DockPanel Grid.Row="0">
                    <Border DockPanel.Dock="Top" BorderThickness="2,0,2,0" CornerRadius="3,3,0,0" BorderBrush="#FFF6871B" Margin="5,0,5,0">
                        <WrapPanel Background="#FFF6871B">
                            <Label Content="PACKAGES" FontFamily="Myriad Pro" FontSize="12" FontWeight="Bold" />
                        </WrapPanel>
                    </Border>
                    <Border DockPanel.Dock="Bottom" BorderThickness="2,0,2,2" CornerRadius="0,0,3,3" BorderBrush="#FFF6871B" Margin="5,0,5,0">
                        <WrapPanel HorizontalAlignment="Stretch" Background="#FF333333">
                            <Button BorderBrush="#FFF6871B" Background="Transparent" Name="markCompleteBtn" ToolTip="Mark Package Complete" Margin="0,0,5,0" Click="markCompleteBtn_Click" Width="85" Height="30">
                                <WrapPanel Margin="-5">
                                    <Image HorizontalAlignment="Left" Source="/WPP_Console;component/images/package-complete-icon.png" Width="25" />
                                    <Label VerticalAlignment="Center" Content="PICKED-UP" FontFamily="Myriad Pro" FontSize="9" Foreground="#FFF2F2F2" />                              
                                </WrapPanel>
                            </Button>
                            <Button Name="markAllCompleteBtn" ToolTip="Mark All Packages Complete" Margin="0,0,5,0" Click="markAllCompleteBtn_Click" Width="100" Height="30">
                                <WrapPanel Margin="-5">
                                    <Image Source="/WPP_Console;component/images/all-package-complete-icon.png" Width="25" />
                                    <Label VerticalAlignment="Center" Content="ALL PICKED-UP" FontSize="9" FontFamily="Myriad Pro" Foreground="#FFF2F2F2" />
                                </WrapPanel>
                            </Button>
                        </WrapPanel>
                    </Border>
                    <Border BorderThickness="2,2,2,0" CornerRadius="0" BorderBrush="#FFF6871B" Margin="5,0,5,0">
                        <DataGrid Name="PackageGrid" SelectionChanged="PackageGrid_SelectionChanged">
                            <DataGrid.Columns>
                                <DataGridTextColumn Width="Auto" Header="PACKAGE NUMBER"></DataGridTextColumn>
                                <DataGridTextColumn Width="Auto" Header="DATE PICKED UP"></DataGridTextColumn>
                                <DataGridTextColumn Width="Auto" Header="DATE BOXED"></DataGridTextColumn>
                                <DataGridTextColumn Width="Auto" Header="PACKAGE STATUS"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="PICKED UP BY"></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                    </Border>
                </DockPanel>
                <DockPanel Grid.Row="1" Margin="0,5,0,5">
                    <Border DockPanel.Dock="Top" BorderThickness="2,0,2,0" CornerRadius="3,3,0,0" BorderBrush="#FFF6871B" Margin="5,0,5,0">
                        <WrapPanel Background="#FFF6871B">
                            <Label Content="PACKAGE ITEMS" FontFamily="Myriad Pro" FontWeight="Bold" />
                        </WrapPanel>
                    </Border>
                    <Border BorderThickness="2" CornerRadius="0,0,3,3" BorderBrush="#FFF6871B" Margin="5,0,5,0">
                        <DataGrid Name="ItemGrid">
                            <DataGrid.Columns>
                                <DataGridTextColumn Width="Auto" Header="POSSKU"></DataGridTextColumn>
                                <DataGridTextColumn Width="*" Header="DESCRIPTION"></DataGridTextColumn>
                                <DataGridTextColumn Width="Auto" Header="CUSTOMER NOTES"></DataGridTextColumn>
                                <DataGridTextColumn Width="Auto" Header="QUANTITY"></DataGridTextColumn>
                            </DataGrid.Columns>
                        </DataGrid>
                    </Border>
                </DockPanel>
            </Grid>
        </DockPanel>
    </DockPanel>
</Window>
